/* 设置css样式： ele 节点*/
function setCssProperty(ele, lst) {
	if(ele!=null) {
		if(lst.length == 2) {
			ele.style.setProperty(lst[0], lst[1]);
		}
		else if(lst.length > 2) {
			ele.style.setProperty(lst[0], lst[1], lst[2]);
		}
	}
}

/* 移除节点： ele 节点*/
function removeElement(ele) {
	if(ele!=null) {
		ele.parentNode.removeChild(ele);
	}
}

/* 根据ClassName移除节点：name  ClassName数组*/
function removeByClassName(name) {
	for(n=0; n<name.length; n++) {
		data = document.getElementsByClassName(name[n]);
		for(i=0; i<data.length; i++) {
			removeElement(data[i]);
			console.log(n);
		}
	}
}

/* 展开 */
contents = document.getElementsByClassName("content-box");
if(contents.length > 0) {
	divs = contents[0].getElementsByClassName("ask-issue-content");
	if(divs.length > 0) {
		divs[0].setAttribute("class","ask-issue-content-expand normal-style ask-issue-content");
	}
}

/* 移除展开折叠按钮 及 其他*/
ClassName = ["expandBtn", "ask-issue-write", "ask-issue-tool", "el-dialog__wrapper ask-close-confirm ask-close-confirm2", "el-dialog__wrapper ask-close-confirm ask-close-confirm4", "so-questionnaire", "ask-questions-list"];
removeByClassName(ClassName);

/* 修改CSS样式 */
setCssProperty(document.getElementsByClassName("main loyout layout")[0], ["margin-top", "0px", "important"]);